package com.fcscs.cservice.domain;

import java.util.Date;

import com.fcscs.core.domain.HistoricalEntity;

public class Message extends HistoricalEntity {
	private static final long serialVersionUID = -4091980664765947757L;

	private long reservationId;
	private boolean isRead;
	private String msgFrom;
	private Date msgDateTime;
	private String msgSubject;
	private String msgContent;

	public Message() {
	}

	public Message(String msgFrom, Date msgDateTime, String msgSubject, String msgContent) {
		this.msgFrom = msgFrom;
		this.msgDateTime = msgDateTime;
		this.msgSubject = msgSubject;
		this.msgContent = msgContent;
	}
	
	public long getReservationId() {
		return this.reservationId;
	}

	public void setReservationId(long reservationId) {
		this.reservationId = reservationId;
	}

	public boolean getIsRead() {
		return this.isRead;
	}

	public void setIsRead(boolean isRead) {
		this.isRead = isRead;
	}

	public String getMsgFrom() {
		return this.msgFrom;
	}

	public void setMsgFrom(String msgFrom) {
		this.msgFrom = msgFrom;
	}

	public Date getMsgDateTime() {
		return this.msgDateTime;
	}

	public void setMsgDateTime(Date msgDateTime) {
		this.msgDateTime = msgDateTime;
	}

	public String getMsgSubject() {
		return this.msgSubject;
	}

	public void setMsgSubject(String msgSubject) {
		this.msgSubject = msgSubject;
	}

	public String getMsgContent() {
		return this.msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	@Override
	public DBLoc getDBLoc() {
		return DBLoc.GUEST;
	}
}
